<template>
  <el-card class="app-container">
    <c-u-r-d-table :option="option"/>
  </el-card>
</template>

<script>

import ColumnType from '@/framework/constant/ColumnType'
import { invoiceOpenDetailApi } from '@/feature/fms/infra/api/invoiceOpenDetailApi'
import CURDTable from '@/framework/components/table/CURDTable'

export default {
  components: { CURDTable },
  data() {
    return {
      option: {
        requestApi: invoiceOpenDetailApi,
        columns: [
          {
            label: '',
            prop: 'invoiceOpenId',
            searchable: true,
            type: ColumnType.SELECT
          },
          {
            label: '货物或应税劳务名称',
            prop: 'spuTitle'
          },
          {
            label: '规格型号',
            prop: 'specTitle'
          },
          {
            label: '数量',
            prop: 'num',
            type: ColumnType.NUMBER
          },
          {
            label: '单位',
            prop: 'unit'
          },
          {
            label: '单价（含税）',
            prop: 'price'
          },
          {
            label: '金额（含税）',
            prop: 'amount'
          },
          {
            label: '税率',
            prop: 'taxRatio'
          },
          {
            label: '税额',
            prop: 'taxAmount'
          },
          {
            label: '创建时间',
            type: ColumnType.DATETIME,
            hiddenInForm: true,
            prop: 'gmtCreate'
          },
          {
            label: '修改时间',
            type: ColumnType.DATETIME,
            hiddenInForm: true,
            prop: 'gmtModified'
          }
        ]
      }
    }
  },
  methods: {}
}
</script>

